﻿
using Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace IBLL
{
    public interface IFileInfoBLL
    {
        /// <summary>
        /// 创建一个文件上传的记录
        /// </summary>
        /// <param name="fileId"></param>
        /// <param name="extension"></param>
        /// <param name="length"></param>
        /// <param name="creatorId"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        bool CreateFileInfo(string fileId, string extension, long length, string creatorId, out string msg);

        /// <summary>
        /// 根据id找文件记录
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        FileInfo GetFileInfoById(string id);
    }
}
